#include "Scene/SceneService.h"

#include "Core/Kernel.h"

#include "Scene/RenderManager.h"
#include "GfxDriver/GfxDriver.h"

namespace Orca {

	ORCA_IMPLEMENT_SERVICE(SceneService)

	//--------------------------------------------------------------------------
	SceneService::SceneService() 
		: mRenderMgr(NULL) {
	}

	//--------------------------------------------------------------------------
	SceneService::~SceneService() {

	}

	//--------------------------------------------------------------------------
	bool SceneService::startup() {

		mRenderMgr = new RenderManager(INST<GfxDriver>());
		return true;
	}
	
	//--------------------------------------------------------------------------
	void SceneService::step(float dt) {

	}
	
	//--------------------------------------------------------------------------
	void SceneService::shutdown() {

		if(mRenderMgr) {

			delete mRenderMgr;
			mRenderMgr = NULL;
		}
	}

	//--------------------------------------------------------------------------
}